<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var set=new Set();
        set.add(1);
        set.add(2);
        set.add(2);
        set.add(3);
        set.add(4);
        set.add(5);
        set.add(5);
        console.log(set);

        set.delete(3);
        console.log(set);

        console.log(set.has(3));
        console.log(set.has(1));
        
        set.clear();
        console.log(set);
    </script>
</body>
</html>